openCard
Type
message
Summary
Sent to a card right after you go to the card.
Syntax
openCard
Description
Handle the openCard message to change a card's objects, or perform other updates, when the card is visited.
The openCard message is sent after the destination card is visible. To make changes that take effect before the card becomes visible on the screen, use the preOpenCard message instead.
The actual navigation is not triggered by the openCard message, so trapping the message and not allowing it to pass does not prevent the card from appearing.
Examples
on openCard
select text of field "Search"
end openCard
Related
object: card
control structure: pass
glossary: object, message, trap
keyword: card
message: openBackground, openControl, preOpenCard
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile